package com.rati.usercenter.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rati.usercenter.model.domain.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Lwh
 * @description 针对表【user(用户)】的数据库操作Mapper
 * @createDate 2022-12-11 20:14:07
 */
public interface UserMapper extends BaseMapper<User> {

    /**
     * 部分匹配搜索拥有某些标签的用户
     *
     * @param tagNameList 用户可包含的标签列表
     * @return 用户列表
     */
    List<User> getOrByTags(@Param("tagNameList") List<String> tagNameList);

}




